package com.jzcn.service;

import com.jzcn.common.base.IBaseService;
import com.jzcn.common.dto.system.user.SysUserDTO;
import com.jzcn.common.dto.system.user.UserListDTO;
import com.jzcn.common.utils.JzPage;
import com.jzcn.common.dto.system.user.SearchUserDTO;
import com.jzcn.domain.SysUser;

public interface SysUserService extends IBaseService<SysUser>  {

    boolean create(SysUserDTO sysUserDTO);

    boolean update(SysUserDTO sysUserDTO, Integer id);

    boolean delete(Integer id);

    SysUser getInfo(Integer id);

    SysUser getUserName(String userName);

    boolean newPassword(Integer id,String oldPassword,String newPassword);

    boolean resetPwd(Integer id);

    boolean userStatus(Integer id,Integer status);

    JzPage<UserListDTO> listPage(SearchUserDTO searchUserVo);

    SysUser login(String userName,String password);


}
